import request from '@/utils/request'

// 查询招生类型列表
export function listRegisterType(query) {
  return request({
    url: '/business/registerType/list',
    method: 'get',
    params: query
  })
}

// 查询招生类型所有列表
export function listAllRegisterType(query) {
  return request({
    url: '/business/registerType/listAll',
    method: 'get',
    params: query
  })
}

// 查询招生类型详细
export function getRegisterType(id) {
  return request({
    url: '/business/registerType/getInfo/' + id,
    method: 'get'
  })
}

// 新增招生类型
export function addRegisterType(data) {
  return request({
    url: '/business/registerType/add',
    method: 'post',
    data: data
  })
}

// 修改招生类型
export function updateRegisterType(data) {
  return request({
    url: '/business/registerType/edit',
    method: 'post',
    data: data
  })
}

// 删除招生类型
export function delRegisterType(id) {
  return request({
    url: '/business/registerType/remove/' + id,
    method: 'get'
  })
}
